import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'

const routes = [
  {
    path: '/',
    name: 'CodeMirror',
    component: Home
  },
  {
    path: '/MonitorScrolling',
    name: 'MonitorScrolling',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/MonitorScrolling.vue')
  },
  {
    path: '/Draggable',
    name: 'Draggable',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/Draggable.vue')
  },
  {
    path: '/nested-example',
    name: 'NestedExample',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/nested-example.vue')
  },
  {
    path: '/DragTable',
    name: 'DragTable',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/DragTable.vue')
  },
  {
    path: '/ForInPromise',
    name: 'ForInPromise',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/ForInPromise.vue')
  },
  {
    path: '/CustomShowDate',
    name: 'CustomShowDate',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/CustomShowDate.vue')
  },
  {
    path: '/myselect',
    name: 'myselect',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/MySelect.vue')
  },
  {
    path: '/hoverTable',
    name: 'hoverTable',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/HoverTable.vue')
  },
  {
    path: '/page',
    name: 'PaginationCom',
    component: () => import(/* webpackChunkName: "about" */ '../views/PaginationCom.vue')
  },
  {
    path: '/slotcom',
    name: 'SlotCom',
    component: () => import(/* webpackChunkName: "about" */ '../views/SlotCom.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
